﻿@model CodeFirstEntities.Student
@{
    ViewBag.Title = "Delete the Student";
}
<h2>
    Delete the Student</h2>
<h3>
    Are you sure you want to delete this?</h3>
@using (Html.BeginForm())
{
    <fieldset>
        <legend>Student to Delete</legend>
        @Html.HiddenFor(model => model.StudentId)
        @Html.HiddenFor(model => model.Address)
        @Html.HiddenFor(model => model.Age)
        @Html.HiddenFor(model => model.Country)
        @Html.HiddenFor(model => model.Email)
        @Html.HiddenFor(model => model.Name)
        <div class="display-label">
            Name</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Name)
        </div><br/>
        <div class="display-label">
            Email</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Email)
        </div><br/>
        <div class="display-label">
            Address</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Address)
        </div><br/>
        <div class="display-label">
            Age</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Age)
        </div><br/>
        <div class="display-label">
            Country</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Country)
        </div><br/>
    </fieldset>

    <p>
        <input type="submit" value="Delete" />
        |
        @Html.ActionLink("Back to List", "List")
    </p>
}
